﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TravelLib
{
    public class Request
    {

        public Route UserSetRoute
        {
            get;
            set;
        }

        public HashSet<Route> IntermediateRoutes
        {
            get;
            set;
        }
        //available route lists with 
        private static List<HashSet<Route>> _preIntermediateRoutes = new List<HashSet<Route>>();
        public List<HashSet<Route>> PreIntermediateRoutes
        {
            get{ return _preIntermediateRoutes; }
            set { _preIntermediateRoutes = value; }
        }
        public int NumberOfSeats
        {
            get;
            set;
        }

        public bool StopOver
        {
            get;
            set;
        }

        public bool PlaneChange
        {
            get;
            set;
        }

        public TravelClassEnum TravelClass
        {
            get;
            set;
        }
        public Request()
        {
            UserSetRoute = new Route();
            IntermediateRoutes = new HashSet<Route>();
            PreIntermediateRoutes = new List<HashSet<Route>>();
        }
    }
}
